package com.gaussdb.demo;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLException;

public class DorisSelectDemo {
    public static void main(String[] args) throws SQLException {


        Connection conn = DriverManager.getConnection("jdbc:mysql://113.45.13.150:9030/", "root", "");

        PreparedStatement preparedStatement = conn.prepareStatement("insert into test.t1_sink values(?,?)");

        preparedStatement.setInt(1,3);
        preparedStatement.setString(2,"shu");
        preparedStatement.execute();

        preparedStatement.close();
        conn.close();
    }
}
